package com.cn.esermis.datawarn.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.cn.esermis.datawarn.entity.MonitorFactor;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface MonitorFactorMapper extends BaseMapper<MonitorFactor> {
    @Select(value = "select factor_type from monitor_factor where code = #{factor}")
    Integer waterOrAir(@Param("factor") String factor);
}
